package com.evil.kingdom.pojo.enums;

import com.evil.common.core.exception.BusinessException;
import com.evil.kingdom.pojo.enums.result.RCodeEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 出征结果
 *
 * @author liyang
 * @date 2024-06-12 09:58
 */
@Getter
@AllArgsConstructor
public enum WarfareResultEnum {

    WARFARE_CONTINUE(1, "行军继续"),
    WARFARE_ACCESS(2, "出征到达"),
    WARFARE_MEET(3, "出征相遇"),
    WARFARE_ATTACK(4, "出征攻城"),
    ;

    private final int type;
    private final String title;

    public static BusinessException error() {
        return new BusinessException(RCodeEnum.ERROR_PARAMETER, "出征结果类型错误");
    }
}
